-- GENERATED SPELL FOR [Dragonmaw Centurion] --


function spell0_1036(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_1036', 598, 1)
end

function spell1_1036(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(643,pUnit)
pUnit:RegisterEvent('Sorts_1036', 605, 1)
end

function spell2_1036(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(1672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1036', 6000, 1)
end

function Sorts_1036(pUnit, Event)
local choix_sorts_1036 = math.random(0, 2)
if choix_sorts_1036 == 0 then
pUnit:RegisterEvent('spell0_1036', 1, 1)
end
if choix_sorts_1036 == 1 then
pUnit:RegisterEvent('spell1_1036', 1, 1)
end
if choix_sorts_1036 == 2 then
pUnit:RegisterEvent('spell2_1036', 1, 1)
end
end

function mob1036_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1036', math.random(1500, 3000), 1)
end

function mob1036_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1036_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1036_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1036, 1, 'mob1036_Action')
RegisterUnitEvent(1036, 2, 'mob1036_Leave')
RegisterUnitEvent(1036, 3, 'mob1036_Kill')
RegisterUnitEvent(1036, 4, 'mob1036_Die')
